package com.qiku.enums;

public enum AppHttpCodeEnum {
    SUCCESS(200,"操作成功！"),
    NEED_LOGIN(401,"请先登录！"),
    SYSTEM_ERROR(500,"出现错误！"),
    USERNAME_EXIST(501,"用户名已存在！"),
    PHONENUMBER_EXIST(502,"手机号已存在！"),
    EMAIL_EXIST(503,"邮箱已存在！"),
    USERNAME_NOT_EXIST(504,"用户名不存在！"),
    LOGIN_ERROR(505,"用户名或者密码错误！"),
    NICKNAME_NOT_EXIST(506,"昵称不存在！"),
    USERNAME_NOT_NULL(507,"用户名不能为空！"),
    PASSWORD_NOT_NULL(508,"密码不能为空！"),
    NICKNAME_NOT_NULL(509,"昵称不能为空！"),
    EMAIL_NOT_NULL(511,"邮箱不能为空！"),
    NICKNAME_EXIST(512,"昵称已存在！");
    int code;
    String msg;

    AppHttpCodeEnum(int code, String errorMessage) {
        this.code = code;
        this.msg = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
